<?php
/**
 *
 * Project:     Neuf TV MediaCenter - MP9CTL
 * File:        toplist.inc.php
 *
 * Envoi page dossiers favoris
 *
 * @author David G. pour Neuf Cegetel
 *
 */

/* Definition des partages */
require(getConfFile());

echo '<?xml version="1.0" encoding="utf-8"?>'."\n";
?>
<browse>
    <childDevices>
<?php
    foreach($shares as $share) {
	if (isset($share['type'])) { ?>
        <childDevice type="<?= $share['type'] ?>" readOnly="<?= $share['readOnly'] ?>" >
            <name><?= $share['name'] ?></name> 
            <path><?= $share['id'] ?></path> 
        </childDevice>
<?php 	}
    } ?>
    </childDevices>
    <folders>
<?php
    foreach($shares as $share) {
	if (!isset($share['type'])) { ?>
        <folder>
            <name><?= $share['name'] ?></name> 
            <path><?= $share['id'] ?></path> 
        </folder>
<?php 	}
    } ?>
    </folders>
</browse>
